import Layout from '@/layout'

const destinationRouter = {
  path: '/destination',
  name: 'destination-group',
  component: Layout,
  meta: { title: '纸厂报表', icon: 'tree', roles: ['m6800'] },
  children: [
    {
      path: 'day',
      component: (resolve) => require(['@/views/destination-group/day'], resolve),
      name: 'DestinationDayManage',
      remoteParam: { serviceName: 'bi', path: '/api/statistics/destination/day/' },
      remoteUrl: '',
      meta: { title: '纸厂日报', roles: ['m6810'] }
    },
    {
      path: 'month',
      component: (resolve) => require(['@/views/destination-group/month'], resolve),
      name: 'DestinationMonthManage',
      remoteParam: { serviceName: 'bi', path: '/api/statistics/destination/month/' },
      remoteUrl: '',
      meta: { title: '纸厂月报', roles: ['m6820'] }
    },
    {
      path: 'year',
      component: (resolve) => require(['@/views/destination-group/year'], resolve),
      name: 'DestinationYearManage',
      remoteParam: { serviceName: 'bi', path: '/api/statistics/destination/year/' },
      remoteUrl: '',
      meta: { title: '纸厂年报', roles: ['m6830'] }
    },
    {
      path: 'top',
      component: (resolve) => require(['@/views/destination-group/top'], resolve),
      name: 'DestinationTopManage',
      remoteParam: { serviceName: 'bi', path: '/api/statistics/destination/top/' },
      remoteUrl: '',
      meta: { title: '纸厂排行', roles: ['m6840'] }
    }
  ]
}

export default destinationRouter
